package com.ybxx.fees.model;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.apache.commons.lang.StringUtils;

import com.ybxx.core.model.BaseModel;

@Entity
@Table(name="tbl_fees_ff_record")
public class FfRecord extends BaseModel {
	@Id
	private String ffrcode;
	@ManyToOne(targetEntity=Records.class,fetch=FetchType.LAZY)
	@JoinColumn(name="frcode",referencedColumnName="frcode") 
	private Records records;
	private String area;
	private String price;
	private String currentcost;
	private String setupcost;
	private String combined;
	private String toll;
	public String getFfrcode() {
		return ffrcode;
	}
	public void setFfrcode(String ffrcode) {
		this.ffrcode = ffrcode;
	}
	public Records getRecords() {
		return records;
	}
	public void setRecords(Records records) {
		this.records = records;
	}
	public String getArea() {
		return area;
	}
	public void setArea(String area) {
		if(StringUtils.isNotEmpty(area)){
			this.area = area;
		}
	}
	public String getPrice() {
		return price;
	}
	public void setPrice(String price) {
		if(StringUtils.isNotEmpty(price)){
			this.price = price;
		}
	}
	public String getCurrentcost() {
		return currentcost;
	}
	public void setCurrentcost(String currentcost) {
		if(StringUtils.isNotEmpty(currentcost)){
			this.currentcost = currentcost;
		}
	}
	public String getSetupcost() {
		return setupcost;
	}
	public void setSetupcost(String setupcost) {
		if(StringUtils.isNotEmpty(setupcost)){
			this.setupcost = setupcost;
		}
	}
	public String getCombined() {
		return combined;
	}
	public void setCombined(String combined) {
		if(StringUtils.isNotEmpty(combined)){
			this.combined = combined;
		}
	}
	public String getToll() {
		return toll;
	}
	public void setToll(String toll) {
		this.toll = toll;
	}
	
	
}
